package com.edmendst.xmall.dto;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class OrderInfo {
    //接收字段
    private String userName;
    private Integer productId;
    private Integer quantity;
    private DeliveryInfo deliveryInfo;

    public OrderInfo(String userName, Integer productId, Integer quantity, DeliveryInfo deliveryInfo) {
    this.userName = userName;
    this.productId = productId;
    this.quantity = quantity;
    this.deliveryInfo = deliveryInfo;
    }

    public OrderInfo() {
    }

    public String toString() {
        return "OrderInfo{" +
                "userName='" + userName + '\'' +
                ", productId=" + productId +
                ", quantity=" + quantity +
                ", deliveryInfo=" + deliveryInfo +
                '}';
    }
}
